package com.tensquare.notice.feign;

import cn.hutool.core.util.ReUtil;
import com.tensquare.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author BAO
 * @version V1.0
 * @Package com.tensquare.notice.feign
 * @date 2020/12/5 18:26
 * @description:
 */
@FeignClient(value = "tensquare-user",fallback = Exception.class)
public interface UserFeignClient {

    /**
     * 根据id查询用户
     * @param userId
     * @return
     */
    @GetMapping("/user/{id}")
    public Result findById(@PathVariable("id") String userId);
}
